package com.example.simple.adapter

import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter4.BaseQuickAdapter
import com.example.app.databinding.AppStateViewEmptyBinding

/**
 * Created on 2023/1/31.
 * @author Joker
 * Des: 单布局
 */

class VHSimple(
    parent: ViewGroup,
    val binding: AppStateViewEmptyBinding = AppStateViewEmptyBinding.inflate(LayoutInflater.from(parent.context), parent, false)
) : RecyclerView.ViewHolder(binding.root)

class SimpleQuickAdapter : BaseQuickAdapter<String, VHSimple>() {
    override fun onCreateViewHolder(context: Context, parent: ViewGroup, viewType: Int) = VHSimple(parent)

    @SuppressLint("SetTextI18n")
    override fun onBindViewHolder(holder: VHSimple, position: Int, item: String?) {
        if (item == null) return
        holder.binding.apply {

        }
    }
}